<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var goodlist = [
            { id: 111, url: './images/g1.jpg', name: '阿联酋美女1号', wages: 94922, age: 20 },
            { id: 22, url: './images/g2.jpg', name: '阿联酋美女2号', wages: 21498, age: 18 },
            { id: 3325, url: './images/g3.jpg', name: '阿联酋美女3号', wages: 94398, age: 22 },
            { id: 4, url: './images/g4.jpg', name: '阿联酋美女4号', wages: 92318, age: 24 },
            { id: 5, url: './images/g3.jpg', name: '阿联酋美女5号', wages: 39888, age: 18 }
    ]
    var p = location.search;

    p = p.substring(1)

    var arr = p.split('=');

    var obj = {};

    obj[arr[0]] = arr[1];

    var res = goodlist.filter(function(item,index){
        return item.id == obj.id
    })
    
</script>
</html>